package com.personal.controller.mgmt;

import com.personal.entity.mgmt.MgCompany;
import com.personal.service.mgmt.CompanyService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;
import java.util.List;

@ApiIgnore
@RestController
@RequestMapping("/mgCompany")
public class MgCompanyController {
    @Resource
    private CompanyService companyService;

    @RequestMapping("/getAll")
    public List<MgCompany> getAll(){
        return companyService.getAll();
    }
}
